home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
cprog.EXE
/
CC_1.ZIP
/
PUTW.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-02-01
|
512 b
|
13 lines
/*
** put a word to the stream
*/
#define FILE int
#include "streamio.h"
extern fputc();
putw(w, stream) int w; FILE *stream; {
if(fputc((w >> 8) & 255, stream) == EOF) return EOF;
if(fputc(w & 255, stream) == EOF) return EOF;
return w;
}